/*
 * @Author: your name
 * @Date: 2021-04-13 20:33:43
 * @LastEditTime: 2021-05-15 19:41:16
 * @LastEditors: Please set LastEditors
 * @Description: 临床试验
 * @FilePath: /medicine-web/src/store/modules/clinical.js
 */
import rest from './../rest'
const clinical = {
  state: {},
  mutations: {},
  actions: {
    async getClinicalList({ commit }, data) { // 获取临床列表
      const res = await rest.get('clinical_trial/search', data)
      if (res && res.code === 200) {
        return res.data
      }
      return {}
    },
    async getClinicalDetail({ commit }, data) { // 获取临床试验
      const res = await rest.get('clinical_trial/info', data)
      if (res && res.code === 200) {
        return res.data
      }
      return {}
    },
    async getClinicalStatitics({ commit }, data) {
      const res = await rest.get('clinical_trial/report')
      if (res && res.code === 200) {
        return res.data
      }
      return {}
    }
  },
  getters: {}
}
export default clinical